package chap03;

public class abstract_demo {
    public  static void main(String [] args)
    {
        Apple apple=new Apple();
        apple.harvest();
    }
}
abstract class Frust {
    public String color;
//看来只可以修改属性
    public Frust() {
        this.color = "Drak Orange red";
    }

    public abstract void harvest();
}

class Apple extends Frust{
    public void harvest(){
        System.out.println("gather as a harvest:"+color);
    }
}class Orange extends Frust{
    public void harvest(){
        System.out.println("gather as a harvest");
    }
}
